<!--待审核的企业客户-->
<template>
    <div>
        <el-tabs v-model="activeName2" type="card" >
            <el-tab-pane label="企业信息" name="first">
                <!--修改历史记录内容-->
                <el-dialog title="修改记录" :visible.sync="dialog.showHistory.open" size="large"
                           v-if="dialog.showHistory.open" :modal=false>
                    <el-row :gutter="20">
                        <el-col :span="3"><span>版本号</span></el-col>
                        <el-col :span="3"><span>编辑人</span></el-col>
                        <el-col :span="3"><span>提交时间</span></el-col>
                        <el-col :span="3"><span>审核时间</span></el-col>
                        <el-col :span="3"><span>审核结果</span></el-col>
                        <el-col :span="3">审核人</el-col>
                        <el-col :span="3">操作</el-col>
                    </el-row>
                    <el-row :gutter="20" style="padding: 20px 0" v-for="item in histroyBox">
                        <el-col :span="3"><span>{{item.version}}</span></el-col>
                        <el-col :span="3"><span>{{item.editor_person}}</span></el-col>
                        <el-col :span="3"><span>{{item.create_time}}</span></el-col>
                        <el-col :span="3"><span>{{item.update_time}}</span></el-col>
                        <el-col :span="3" v-if="item.enterprise_flag==1"><span >待审</span></el-col>
                        <el-col :span="3" v-else-if="item.enterprise_flag==2"><span>通过</span></el-col>
                        <el-col :span="3" v-else><span>审核不通过</span></el-col>
                        <el-col :span="3">{{item.examine_people}}</el-col>
                        <el-col :span="3" @click="hisContent(item.enterprise_id,'showHis')">查看此版本</el-col>
                    </el-row>
                </el-dialog>
                <p>当前用户版本 <span style="color:#666;font-weight: bolder">{{dataBox.version}}</span></p>
                <!--<div class="block" style="margin:20px">-->
                      <!--<span class="wrapper" style="padding-bottom: 20px">-->
                        <!--<el-button type="success" @click="makeSure(2)">审核通过</el-button>-->
                        <!--<el-button type="warning" @click="makeSure(3)">不通过</el-button>-->
                          <!--<el-button type="info" @click="showHis('showHistory')">查看历史版本</el-button>-->
                      <!--</span>-->
                    <!--&lt;!&ndash;openDialog('showHistory')"&ndash;&gt;-->
                <!--</div>-->
                <el-row>
                    <!--<el-col :span="2"><span>版本编辑人:</span></el-col>-->
                    <!--<el-col :span="2"><span>{{dataBox.account_manager}}</span></el-col>-->
                    <el-col :span="2"><span>客户经理:</span></el-col>
                    <el-col :span="2"><span>{{dataBox.account_manager}}</span></el-col>
                </el-row>
                <el-row>
                    <el-col :span="2"><span>提交时间：</span></el-col>
                    <el-col :span="5"><span>{{dataBox.create_time}}</span></el-col>
                </el-row>
                <!--<el-row>-->
                <!--<el-col :span="3"><span>编辑人备注：</span></el-col>-->
                <!--<el-col :span="20"><p>-->

                <!--</p></el-col>-->
                <!--</el-row>-->
                <el-row>
                    <el-col :span="6"><h2>基础资料</h2></el-col>
                </el-row>
                <el-row>
                    <el-col :span="16">
                        <ul>
                            <li><span class="mainListSty4">企业名称*</span><span>{{dataBox.enterprise_name}}</span></li>
                            <li><span class="mainListSty4">企业类型*</span><span>{{dataBox.enterprise_type}}</span></li>
                            <li><span class="mainListSty4">上市情况*</span><span>{{dataBox.is_list}}</span></li>
                            <li><span class="listSty3">经营范围</span><span>{{dataBox.manage_range}}</span></li>
                        </ul>
                    </el-col>
                    <el-col :span="6"><div style="width:100px;height:100px;background:white"></div></el-col>
                </el-row>
                <el-row>
                    <el-col :span="24">
                        <ul>
                            <li><span class="mainListSty4">涉及领域*</span><span v-for="item in outField.enterprise_involve_field" style="margin-right:10px">{{item}}</span></li>
                            <li><span class="listSty3">注册资金（万元）</span><span>{{dataBox.register_fund}}</span></li>
                            <li><span class="mainListSty4">法人代表*</span><span>{{dataBox.legal_person}}</span></li>
                            <li><span class="listSty3">联系人</span><span>{{dataBox.contact_person}}</span></li>
                            <li><span class="mainListSty4">企业地址*</span><span v-for="item in outField.enterprise_address" style="margin-right: 5px">{{item}}</span></li>
                            <li>
                                <span class="mainListSty4">企业E-mail*</span><span>{{dataBox.enterprise_email}}</span>
                                <span style="display:inline-block;width: 100px;margin-left:50px">企业电话*</span><span>{{dataBox.enterprise_phone}}</span>
                                <span style="display:inline-block;width: 100px;margin-left:50px">企业传真</span><span>{{dataBox.enterprise_fax}}</span>
                            </li>
                            <li><span class="listSty3">企业网址</span><span>{{dataBox.enterprise_website}}</span></li>
                        </ul>
                    </el-col>
                </el-row>
                <!--能力画像-->
                <h2>能力画像</h2>
                <!--设计-->
                <el-tabs type="border-card">
                    <el-tab-pane label="设计" v-if="dataBox.has_design_ability">
                        <template>
                            <div>
                                <el-row>
                                    <el-col :span="16">
                                        <div>
                                            <ul>
                                                <li>
                                                    <el-row>
                                                        <el-col :span="6" v-if="outField.design_zizhi_level"><span>资质类别</span></el-col>
                                                        <el-col :span="6" v-if="outField.design_zizhi_level">{{outField.design_zizhi_level}}</el-col>
                                                        <el-col :span="6" v-if="outField.design_zizhi_award_unit"><span>资质颁发单位</span></el-col>
                                                        <el-col :span="6" v-if="outField.design_zizhi_award_unit"><span>{{outField.design_zizhi_award_unit}}</span></el-col>
                                                    </el-row>
                                                </li>
                                                <li>
                                                    <el-row>
                                                        <el-col :span="6" v-if="outField.design_zizhi_level"><span>资质等级</span></el-col>
                                                        <el-col :span="6" v-if="outField.design_zizhi_level">{{outField.design_zizhi_level}}</el-col>
                                                    </el-row>
                                                </li>
                                                <li>
                                                    <el-row>
                                                        <el-col :span="6" v-if="outField.design.charge_standard"><span>收费标准</span></el-col>
                                                        <el-col :span="6" v-if="outField.design.charge_standard">{{outField.design.charge_standard}}</el-col>
                                                        <el-col :span="6" v-if="outField.design.major_field"><span>专业领域</span></el-col>
                                                        <el-col :span="6" v-if="outField.design.major_field">{{outField.design.major_field}}</span></el-col>
                                                    </el-row>
                                                </li>
                                                <li>
                                                    <el-row>
                                                    </el-row>
                                                </li>
                                            </ul>
                                        </div>
                                    </el-col>
                                    <el-col :span="1">
                                        <hr style="height:200px;width: 1px">
                                    </el-col>
                                    <el-col :span="7"><div >
                                        <h2>评价星级</h2>
                                        <span >{{outField.design_evaluate_star
}}</span>
                                    </div></el-col>
                                </el-row>
                            </div>
                        </template>
                    </el-tab-pane>
                    <!--咨询-->
                    <el-tab-pane label="咨询" v-if="dataBox.has_consult_ability">
                        <template>
                            <div>
                                <el-row>
                                    <el-col :span="16">
                                        <div>
                                            <ul>
                                                <li>
                                                    <el-row>
                                                        <el-col :span="6" v-if="outField.consult_zizhi_type"><span>资质类别</span></el-col>
                                                        <el-col :span="6" v-if="outField.consult_zizhi_type">{{outField.consult_zizhi_type}}</el-col>
                                                        <el-col :span="6" v-if="outField.consult_zizhi_award_unit"><span>资质颁发单位</span></el-col>
                                                        <el-col :span="6" v-if="outField.consult_zizhi_award_unit"><span>{{outField.consult_zizhi_award_unit}}</span></el-col>
                                                    </el-row>
                                                </li>
                                                <li>
                                                    <el-row>
                                                        <el-col :span="6" v-if="outField.consult_zizhi_level"><span>资质等级</span></el-col>
                                                        <el-col :span="6" v-if="outField.consult_zizhi_level">{{outField.consult_zizhi_level}}</el-col>
                                                        <!--<el-col :span="6"><span>其他</span></el-col>-->
                                                        <!--<el-col :span="6">无</el-col>-->
                                                    </el-row>
                                                </li>
                                                <li>
                                                    <el-row>
                                                        <el-col :span="6" v-if="outField.consult.charge_standard"><span>收费标准</span></el-col>
                                                        <el-col :span="6" v-if="outField.consult.charge_standard">{{outField.consult.charge_standard}}</el-col>
                                                        <el-col :span="6" v-if="outField.consult.major_field"><span>专业领域</span></el-col>
                                                        <el-col :span="6" v-if="outField.consult.major_field">{{outField.consult.major_field}}</span></el-col>
                                                    </el-row>
                                                </li>
                                                <li>
                                                    <el-row v-if="outField.consult_relationship.length">
                                                        <el-col :span="4"><span>关键人物</span></el-col>
                                                        <el-col :span="18" v-if="outField.consult_relationship">
                                                            <div >
                                                                <ul>
                                                                    <li style="border-bottom: 1px dotted;padding-bottom: 5px;margin-top:5px" v-for="item in outField.consult_relationship">{{item.name}}-{{item.position}}-{{item.phone}}</li>
                                                                </ul>
                                                            </div>
                                                        </el-col>
                                                    </el-row>
                                                </li>
                                            </ul>
                                        </div>
                                    </el-col>
                                    <el-col :span="1">
                                        <hr style="height:200px;width: 1px">
                                    </el-col>
                                    <el-col :span="7"><div >
                                        <h2>评价星级</h2>
                                        <span>{{outField.consult_evaluate_star
}}</span>
                                    </div></el-col>
                                </el-row>
                            </div>
                        </template>
                    </el-tab-pane>
                    <!--承建-->
                    <el-tab-pane label="承建" v-if="dataBox.has_construct_ability">
                        <template>
                            <div>
                                <el-row>
                                    <el-col :span="16">
                                        <div>
                                            <ul>
                                                <li>
                                                    <el-row>
                                                        <el-col :span="6" v-if="outField.construct_zizhi_award_unit"><span>资质颁发单位</span></el-col>
                                                        <el-col :span="6" v-if="outField.construct_zizhi_award_unit"><span>{{outField.construct_zizhi_award_unit}}</span></el-col>
                                                    </el-row>
                                                </li>
                                                <li>
                                                    <el-row>
                                                        <el-col :span="6" v-if="outField.construct_zizhi_level"><span>资质等级</span></el-col>
                                                        <el-col :span="6" v-if="outField.construct_zizhi_level">{{outField.construct_zizhi_level}}</el-col>
                                                        <!--<el-col :span="6"><span>其他</span></el-col>-->
                                                        <!--<el-col :span="6">无</el-col>-->
                                                    </el-row>
                                                </li>
                                                <li>
                                                    <el-row>
                                                        <el-col :span="6" v-if="outField.construct.charge_standard"><span>收费标准</span></el-col>
                                                        <el-col :span="6" v-if="outField.construct.charge_standard">{{outField.construct.charge_standard}}</el-col>
                                                        <el-col :span="6" v-if="outField.construct.major_field"><span>专业领域</span></el-col>
                                                        <el-col :span="6" v-if="outField.construct.major_field">{{outField.construct.major_field}}</span></el-col>
                                                    </el-row>
                                                </li>
                                                <li>
                                                    <el-row>
                                                        <el-col :span="6" v-if="outField.construct.technology_team_resource"><span>技术团队</span></el-col>
                                                        <el-col :span="6" v-if="outField.construct.technology_team_resource">{{outField.construct.technology_team_resource}}</el-col>
                                                        <el-col :span="6" v-if="outField.construct.main_business"><span>主营业务</span></el-col>
                                                        <el-col :span="6" v-if="outField.construct.main_business">{{outField.construct.main_business}}</span></el-col>
                                                    </el-row>
                                                </li>
                                                <li>
                                                    <el-row>
                                                        <el-col :span="6" v-if="outField.construct_business_area"><span>业务区域</span></el-col>
                                                        <el-col :span="18" v-if="outField.construct_business_area"><span v-for="item in outField.construct_business_area" style="margin-right: 5px">{{item}}</span></el-col>
                                                    </el-row>
                                                </li>
                                                <li>
                                                    <el-row>
                                                        <el-col :span="6" v-if="outField.construct.business_area"><span>施工担保方式</span></el-col>
                                                        <el-col :span="18" v-if="outField.construct.business_area"><span v-for="item in outField.construct_assure_method" style="margin-right: 10px">{{item}}</span></el-col>
                                                    </el-row>
                                                </li>
                                                <li>
                                                    <el-row v-if="outField.construct_relationship.length">
                                                        <el-col :span="4"><span>关键人物</span></el-col>
                                                        <el-col :span="18">
                                                            <ul>
                                                                <li style="border-bottom: 1px dotted;padding-bottom: 5px;margin-top:5px" v-for="item in outField.construct_relationship">{{item.name}}-{{item.position}}-{{item.phone}}</li>
                                                            </ul>
                                                        </el-col>
                                                    </el-row>
                                                </li>
                                            </ul>
                                        </div>
                                    </el-col>
                                    <el-col :span="1">
                                        <hr style="height:200px;width: 1px">
                                    </el-col>
                                    <el-col :span="7"><div >
                                        <h2>评价星级</h2>
                                        <span>{{outField.construct_evaluate_star
}}</span>
                                    </div></el-col>
                                </el-row>
                            </div>
                        </template>
                    </el-tab-pane>
                    <!--设备供应-->
                    <el-tab-pane label="设备供应" v-if="dataBox.has_device_supply_ability">
                        <template>
                            <div>
                                <el-row>
                                    <el-col :span="16">
                                        <div>
                                            <ul>
                                                <li>
                                                    <el-row>
                                                        <el-col :span="6" v-if="outField.device_main_equipment"><span>主营设备</span></el-col>
                                                        <el-col :span="18" v-if="outField.device_main_equipment"><span v-for="item in outField.device_main_equipment" style="margin-right: 10px">{{item}}</span></el-col>
                                                    </el-row>
                                                </li>
                                                <li>
                                                    <el-row>
                                                        <el-col :span="6" v-if="outField.device_enterprise_popularity"><span>企业知名度</span></el-col>
                                                        <el-col :span="6" v-if="outField.device_enterprise_popularity">{{outField.device_enterprise_popularity}}</el-col>
                                                    </el-row>
                                                </li>
                                                <li>
                                                    <el-row>
                                                        <el-col :span="6" v-if="outField.device_sh_network_cover_region"><span>售后网络覆盖区域</span></el-col>
                                                        <el-col :span="18" v-if="outField.device_sh_network_cover_region"><span v-for="item in outField.device_sh_network_cover_region" style="margin-right: 10px">{{item}}</span></el-col>
                                                    </el-row>
                                                </li>
                                                <li>
                                                    <el-row>
                                                        <el-col :span="6" v-if="outField.device.market_share"><span>市场占有率</span></el-col>
                                                        <el-col :span="6" v-if="outField.device.market_share">{{outField.device.market_share}}</el-col>
                                                    </el-row>
                                                </li>
                                                <!--<li>-->
                                                <!--&lt;!&ndash;<el-row>&ndash;&gt;-->
                                                <!--&lt;!&ndash;<el-col :span="6" v-if="outField.device_sale_way"><span>销售方式</span></el-col>&ndash;&gt;-->
                                                <!--&lt;!&ndash;<el-col :span="18" v-if="outField.device_sale_way"><span v-for="item in outField.device_sale_way" style="margin-right: 10px">{{item}}</span></el-col>&ndash;&gt;-->
                                                <!--&lt;!&ndash;</el-row>&ndash;&gt;-->
                                                <!--</li>-->
                                                <li>
                                                    <el-row v-if="outField.device_relationship.length">
                                                        <el-col :span="4"><span>关键人物</span></el-col>
                                                        <el-col :span="18">
                                                            <ul>
                                                                <li style="border-bottom: 1px dotted;padding-bottom: 5px;margin-top:5px" v-for="item in outField.device_relationship">{{item.name}}-{{item.position}}-{{item.phone}}</li>
                                                            </ul>
                                                        </el-col>
                                                    </el-row>
                                                </li>
                                            </ul>

                                        </div>
                                    </el-col>
                                    <el-col :span="1">
                                        <hr style="height:200px;width: 1px">
                                    </el-col>

                                    <el-col :span="7"><div >
                                        <h2>评价星级</h2>
                                        <span>{{outField.device_evaluate_star
}}</span>
                                    </div></el-col>
                                </el-row>
                            </div>
                        </template>
                    </el-tab-pane>
                    <!--投资-->
                    <el-tab-pane label="投资" v-if="dataBox.has_invest_ability">
                        <template>
                            <div>
                                <el-row>
                                    <el-col :span="16">
                                        <div>
                                            <ul>
                                                <li>
                                                    <el-row v-if="outField.invest_relationship.length">
                                                        <el-col :span="4"><span>关键人物</span></el-col>
                                                        <el-col :span="18">
                                                            <ul>
                                                                <li style="border-bottom: 1px dotted;padding-bottom: 5px;margin-top:5px" v-for="item in outField.invest_relationship">{{item.name}}-{{item.position}}-{{item.phone}}</li>
                                                            </ul>
                                                        </el-col>
                                                    </el-row>
                                                </li>
                                            </ul>
                                        </div>
                                    </el-col>
                                    <el-col :span="1">
                                        <hr style="height:200px;width: 1px">
                                    </el-col>

                                    <el-col :span="7"><div >
                                        <h2>评价星级</h2>
                                        <span>{{outField.invest_evaluate_star}}</span>
                                    </div></el-col>
                                </el-row>
                            </div>
                        </template>
                    </el-tab-pane>
                    <!--运维-->
                    <el-tab-pane label="运维" v-if="dataBox.has_operation_ability">
                        <template>
                            <div>
                                <el-row>
                                    <el-col :span="16">
                                        <div>
                                            <ul>
                                                <li>
                                                    <el-row>
                                                        <el-col :span="6" v-if="outField.operation.main_business"><span>主营业务</span></el-col>
                                                        <el-col :span="18" v-if="outField.operation.main_business">{{outField.operation.main_business}}</el-col>
                                                    </el-row>
                                                </li>
                                                <li>
                                                    <el-row>
                                                        <el-col :span="6" v-if="outField.operation.enterprise_advantage"><span>企业优势</span></el-col>
                                                        <el-col :span="18" v-if="outField.operation.enterprise_advantage"><span>{{outField.operation.enterprise_advantage}}</span></el-col>
                                                    </el-row>
                                                </li>
                                                <li>
                                                    <el-row>
                                                        <el-col :span="6" v-if="outField.operation_business_region"><span>业务区域</span></el-col>
                                                        <el-col :span="18" v-if="outField.operation_business_region"><span v-for="item in outField.operation_business_region" style="margin-right: 10px">{{item}}</span></el-col>
                                                    </el-row>
                                                </li>
                                                <li>
                                                    <el-row>
                                                        <el-col :span="6" v-if="outField.operation.operation_bc_ability"><span>运维补差能力</span></el-col>
                                                        <el-col :span="6" v-if="outField.operation.operation_bc_ability">{{outField.operation.operation_bc_ability}}</el-col>
                                                    </el-row>
                                                </li>
                                                <li>
                                                    <el-row v-if="outField.operation_relationship.length">
                                                        <el-col :span="4"><span>关键人物</span></el-col>
                                                        <el-col :span="18">
                                                            <ul>
                                                                <li style="border-bottom: 1px dotted;padding-bottom: 5px;margin-top:5px" v-for="item in outField.operation_relationship">{{item.name}}-{{item.position}}-{{item.phone}}</li>
                                                            </ul>
                                                        </el-col>
                                                    </el-row>
                                                </li>
                                            </ul>

                                        </div>
                                    </el-col>
                                    <el-col :span="1">
                                        <hr style="height:200px;width: 1px">
                                    </el-col>
                                    <el-col :span="7"><div >
                                        <h2>评价星级</h2>
                                        <span>{{outField.operation_evaluate_star}}</span>
                                    </div></el-col>
                                </el-row>
                            </div>
                        </template>
                    </el-tab-pane>
                </el-tabs>
            </el-tab-pane>
            <!--<el-tab-pane label="附件栏" name="fourth">-->
            <!--&lt;!&ndash;附件栏内容编辑&ndash;&gt;-->
            <!--<el-form  class="demo-form-inline" label-width="100px" :label-position="position">-->
            <!--<el-form-item label="营业执照">-->
            <!--<el-upload-->
            <!--:disabled="forbidden"-->
            <!--class="upload-demo"-->
            <!--:action="fileUploadAction"-->
            <!--:file-list="fileList0">-->
            <!--<el-button size="small" type="primary">附件</el-button>-->

            <!--</el-upload>-->

            <!--</el-form-item>-->
            <!--&lt;!&ndash;财务报表&ndash;&gt;-->
            <!--<el-form-item label="财务报表">-->
            <!--<el-upload-->
            <!--:disabled="forbidden"-->
            <!--class="upload-demo"-->
            <!--:action="fileUploadAction"-->
            <!--:file-list="fileList1">-->
            <!--<el-button size="small" type="primary">附件</el-button>-->
            <!--</el-upload>-->

            <!--</el-form-item>-->
            <!--<el-form-item label="照片">-->
            <!--<el-upload-->
            <!--:disabled="forbidden"-->
            <!--class="upload-demo"-->
            <!--:action="fileUploadAction"-->
            <!--:file-list="fileList2">-->
            <!--<el-button size="small" type="primary">附件</el-button>-->
            <!--</el-upload>-->
            <!--</el-form-item>-->
            <!--&lt;!&ndash;名片&ndash;&gt;-->
            <!--<el-form-item label="名片">-->
            <!--<el-upload-->
            <!--:disabled="forbidden"-->
            <!--class="upload-demo"-->
            <!--:action="fileUploadAction"-->
            <!--:file-list="fileList3">-->
            <!--<el-button size="small" type="primary">附件</el-button>-->

            <!--</el-upload>-->
            <!--</el-form-item>-->
            <!--&lt;!&ndash;其他附件&ndash;&gt;-->
            <!--<el-form-item label="其他附件">-->
            <!--<el-upload-->
            <!--:disabled="forbidden"-->
            <!--class="upload-demo"-->
            <!--:action="fileUploadAction"-->
            <!--:file-list="fileList4">-->
            <!--<el-button size="small" type="primary">附件</el-button>-->
            <!--</el-upload>-->
            <!--</el-form-item>-->
            <!--</el-form>-->
            <!--</el-tab-pane>-->
        </el-tabs>
    </div>
</template>
<script>
    import Bus from '@/config/bus.js'
    import _http from '@/components/common/http.vue'
    import _param from '@/components/common/param.vue'
    import designAble from '@/components/working/common/ableList/designAble.vue'
    import consultAble from '@/components/working/common/ableList/consultAble.vue'
    import buildAble from '@/components/working/common/ableList/buildAble.vue'
    import deviceAble from '@/components/working/common/ableList/deviceAble.vue'
    import investAble from '@/components/working/common/ableList/investAble.vue'
    import opsAble from '@/components/working/common/ableList/opsAble.vue'
    export default {
        components:{designAble,consultAble,buildAble,deviceAble,investAble,opsAble},
        data() {
            return {
                apiPort:{
//                    涉及领域接口
                    detailLIst:'transcript/enterprise/toExamine',
//                    确定审核接口
                    checkApi:'transcript/enterprise/examine',
                    historyApi:'transcript/enterprise/viewVersion',
                },
                userid:'',
                file:true,
//                传递后接收到的数据
                dataBox:{},
                outField:{},
                numberField:{},
                histroyBox:[],
//                设备企业主营设备
                device_main_equipment:[],
//                传递的参数id
                param:{
                    enterpriseid:''
                },
//                营业执照上传列表
                fileList0:[],
//                财务报表
                fileList1:[],
//                照片
                fileList2:[],
//                名片
                fileList3:[],
                vision:'',
//                其他附件
                fileList4:[{response:{url:1234567}}],
                forbidden:true,
                position:"left",
//                文件上传路径封装
                fileUploadAction:_param.param.fileUploadUrl,
                dialog:{
                    showHistory:{
                        open:false
                    }
                },
                activeName2: 'first',
                radio:1,
                baseValue:{
                    money:'5000',
                    faren:'俞兆洪',
                    linkMan:'成莹',
                    address:'浙江省 杭州市 萧山区 民和路 479号1701',
                    Email:'service@tanwin.cn',
                    phoneNum:'057156686688',
                    fax:'057156686688',
                    url:'www.tanwin.cn'
                }
            }
        },
        methods:{
//            历史记录细节
            hisContent(id,par){

            },
//            历史记录
            showHis(){
                var that = this
                this.openDialog('showHistory')
                var params = that.querystring.stringify({enterprise_name:that.dataBox.enterprise_name,userid:that.userid})
                _http.axiosRequest(that,that.apiPort.historyApi,params,(res)=>{
                    console.log('这是历史记录')
                console.log(res.data.data)
                that.histroyBox = res.data.data

            })
            },
            handleEdit(){
                setTimeout(function(){
                    Bus.$emit('sendflag',1)
                },100);
            },
            getTotal(){
                var that = this
                var params = that.querystring.stringify(this.param)
                _http.axiosRequest(that,that.apiPort.detailLIst,params,(res)=>{
                    console.log(res)
                that.outField=res.data.data
                console.log("关键人物")
                console.log(that.outField)
//              that.numberField = res.data
                that.device_main_equipment = that.outField.device_main_equipment
                that.dataBox=res.data.data.enterprise

            })
            },
            openDialog(dialog){
                this.dialog[dialog].open = true
            },
//            对副本进行审核
            makeSure(val){
                var that = this
                var id=that.param.enterpriseid
                var param = {enterprise_id:id,status:val,userid:that.userid}
                var params = that.querystring.stringify(param)
                _http.axiosRequest(that,that.apiPort.checkApi,params,(res)=>{
                    console.log(res)
                if(res.data.code==100){
                    that.handleEdit()
                    that.$message({
                        message: '操作成功',
                        type: 'success'
                    });
                }else{
                    that.$message({
                        message: '操作失败，请刷新重试',
                        type: 'warning'
                    });
                }
            })
            }
        },
        mounted(){
            this.userid=localStorage.getItem('userId')
            this.param.userid = localStorage.getItem('userId')
//            获取列表页面id
            var that = this
            Bus.$on('his', function(val){
//                that.baseValue = Object.assign({}, val);
                that.param.enterpriseid=val
                that.getTotal()
            });
        },
        beforeDestroy(){
            Bus.$off("his")
        },
    }
</script>
<style>
    ul li{
        list-style: none;       margin-top: 20px;
    }
    .listSty3{
        display:inline-block;
        width: 100px;
        margin-left:-30px
    }
    .mainListSty4{
        display:inline-block;
        width: 100px;
        margin-left:-30px
    }
    .able:after{
        content: "√";
        color: #6ce26c;
    }
</style>